﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 战棋模拟器
{
    class 载人飞天魔像:Minion
    {//已停止维护
        public List<Minion> FourCostList = new List<Minion>()
        {
            new 载人收割机(),
            new 阿古斯防御者(),
            new 吵吵模组(),
            new 方阵指挥官(),
            new 废旧螺栓机甲(),
            new 寄生恶狼(),
            new 老瞎眼(),
            new 量产型恐吓机(),
            new 魔瘾结晶者(),
            new 人气选手(),
            new 瑞文戴尔男爵(),
            new 始祖龟执盾者(),
            new 兔妖教头(),
            new 温顺的巨壳龙(),
            new 驯兽师(),
            new 硬壳清道夫()
        };

        public 载人飞天魔像() : base()
        {
            Star = 4;
            Attack = 6;
            Health = 4;
            Race = race.mech;
        }


        public override void Deathrattle()
        {
            byte[] buffer = Guid.NewGuid().ToByteArray();
            int iSeed = BitConverter.ToInt32(buffer, 0);
            Random ran = new Random(iSeed);
            int Randkey = ran.Next(0, FourCostList.Count);
            pool.Spawn(pool, Place, FourCostList[Randkey]);
            base.Deathrattle();
        }


        public override Minion NewOne()
        {
            return new 载人飞天魔像();
        }
    }


    class 载人飞天魔像_金色 : 载人飞天魔像
    {
        public 载人飞天魔像_金色() : base()
        {
            Attack *= 2;
            Health *= 2;
            count *= 2;
            buff *= 2;
        }

        public override void Deathrattle()
        {
            byte[] buffer = Guid.NewGuid().ToByteArray();
            int iSeed = BitConverter.ToInt32(buffer, 0);
            Random ran = new Random(iSeed);
            int Randkey = ran.Next(0, FourCostList.Count);
            pool.Spawn(pool, Place, FourCostList[Randkey]);
            base.Deathrattle();
        }

        public override Minion NewOne()
        {
            return new 载人飞天魔像_金色();
        }
    }
}
